import Vue from 'vue'
import Router from 'vue-router'

const Home = () =>
  import ('../components/home.vue')
Vue.use(Router)

const Cart = () =>
  import ('../components/cart.vue')
const Classify = () =>
  import ('../components/classify.vue')
const Personal = () =>
  import ('../components/personal.vue')
const Worth_buying = () =>
  import ('../components/worth_buying.vue')

export default new Router({
  routes: [{
      path: '/',
      redirect: '/home'
    },
    {
      path: '/home',
      component: Home
    },
    {
      path: '/cart',
      component: Cart
    },
    {
      path: '/classify',
      component: Classify
    },
    {
      path: '/personal',
      component: Personal
    },
    {
      path: '/worth_buying',
      component: Worth_buying
    }
  ]
})